﻿using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;
using WebApiClientCore.Attributes;
using XUCore.WeChat.Apis;

namespace XUCore.WeChat.Enterprise.Apis.Group.Statistic
{
    /// <summary>
    /// 联系客户统计
    /// </summary>
    [HttpHost("https://qyapi.weixin.qq.com/cgi-bin/externalcontact/")]
    public interface IEnterpriseContactStatisticApi : IEnterpriseWeChatApiWithAccessTokenFilter
    {
        // /// <summary>
        // /// 获取「联系客户统计」数据<para/>
        // /// 企业可通过此接口获取成员联系客户的数据，包括发起申请数、新增客户数、聊天数、发送消息数和删除/拉黑成员的客户数等指标。<para/>
        // /// <see href="https://developer.work.weixin.qq.com/document/path/92132"/>
        // /// </summary>
        // /// <param name="access_token"></param>
        // /// <param name="input"></param>
        // /// <returns></returns>
        // [HttpPost("get_user_behavior_data")]
        // Task<ContactStatisticApiResult> StatisticAsync([Required] string access_token, [Required] ContactStatisticInput input);
        /// <summary>
        /// 获取「联系客户统计」数据<para/>
        /// 企业可通过此接口获取成员联系客户的数据，包括发起申请数、新增客户数、聊天数、发送消息数和删除/拉黑成员的客户数等指标。<para/>
        /// <see href="https://developer.work.weixin.qq.com/document/path/92132"/>
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        [HttpPost("get_user_behavior_data")]
        Task<ContactStatisticApiResult> StatisticAsync([Required] ContactStatisticInput input);
    }
}